#!/bin/bash
source {{user_home}}/.bashrc
temp_password=`grep "A temporary password" {{mysql_datadir}}/error.log | awk '{ print $13 }'`
mysqladmin -uroot -p${temp_password} password '{{root_password}}'
